package com.javaspeak.designpatterns.go4.creational.abstractfactory;

/**
 * Implementation of Shape. When the drawShape() method is called draws a
 * Square
 *
 * @author John Dickerson
 */
public class Square implements Shape {

    /* (non-Javadoc)
     * @see com.javaspeak.designpatterns.go4.creational.abstractfactory.
     *  Shape#drawShape()
     */
    @Override
    public void drawShape() {

        StringBuilder sb = new StringBuilder( "\n" );
        sb.append( "X X X X\n" );
        sb.append( "X     X\n" );
        sb.append( "X     X\n" );
        sb.append( "X X X X\n" );

        System.out.println( sb.toString() );
    }
}
